#include<stdio.h>
#include<stdlib.h>
#include<sys/types.h>


int main()
{
	pid_t id=vfork();
	if(id<0)
	{
		//perror(vfork);
	}
	else if(id==0)
	{
		printf("child process=%d\n",getpid());
		exit(1);
	}
	else
	{
		sleep(2);
		printf("parents process=%d\n",getpid());
		//return 0;
	}
	return 0;
}
